package cn.wm.e_02.define_protocol.domain;

import cn.wm.e_02.define_protocol.constants.RpcProtocolConst;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@Getter
@Setter
public class RpcProtocol implements Serializable {
    private static final long serialVersionUID = 42L;
    /**
     * 协议开始标记
     */
    private int start = RpcProtocolConst.HEAD_START;
    /**
     * header 长度
     */
    private int headerLength;
    /**
     * header
     */
    private RpcProtocolHeader header;
    /**
     * body 长度
     */
    private int bodyLength;
    /**
     * body
     */
    private byte[] body;
}
